<template>
	<view class="container">
		<image :src="detailsData.contractImg" class="img" mode="widthFix"></image>
		<view class="item">
			<text class="name">房源名字：</text>
			<text class="value">{{detailsData.houseName}}</text>
		</view>
		<view class="item">
			<text class="name">地址：</text>
			<text class="value">{{detailsData.address}}</text>
		</view>
		<view class="item">
			<text class="name">租赁时间：</text>
			<text class="value">{{detailsData.leaseTime}}</text>
		</view>
		<view class="item">
			<text class="name">租赁状态：</text>
			<text class="value">{{detailsData.leaseState?'已出租':'未出租'}}</text>
		</view>
		<view class="item">
			<text class="name">缴费金额：</text>
			<text class="value">{{detailsData.payAmount}}</text>
		</view>
		<view class="item">
			<text class="name">租金状态：</text>
			<text class="value">{{detailsData.rentState?'已缴费':'未缴费'}}</text>
		</view>
		<view class="item">
			<text class="name">应缴费时间：</text>
			<text class="value">{{detailsData.payableTime}}</text>
		</view>
		<view class="item">
			<text class="name">实缴费时间：</text>
			<text class="value">{{detailsData.paidInTime}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detailsData: {}
			}
		},
		onLoad(op) {
			// console.log(JSON.parse(op.data))
			this.detailsData = JSON.parse(op.data)
		},
	}
</script>

<style lang="scss" scoped>
	.container {
		.img {
			width: 100%;
		}

		.item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1px solid #f4f4f5;
			padding: 30rpx;

			.name {
				font-size: 36rpx;
			}

			.value {
				font-size: 32rpx;
				color: #849aae;
			}
		}
	}
</style>